<template>
  <div class='hello1'>
   mes{{mes}}
  </div>
</template>

<script>
import PubSub from 'pubsub-js'

export default {
  name: 'asd',
  data () {
    return {
      mes:'eeee'
    }
  },
	mounted(){
		PubSub.subscribe('search',(event,data)=>{
			this.mes=data
        // alert(data)
    })
	},
  methods: {
 
    getBase64 () {
      PubSub.subscribe('search',(event,data)=>{
         alert(data)
     })
    }
  }
}
</script>
<style scoped> 
</style>
